package br.com.main.client.system.botoes;

import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DeckPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class GerenciaFinancasView  extends Composite {

	private VerticalPanel painelMain;
	private DeckPanel deck;
	private Button btDespesas;
	private Button btFicancMorador;
	private HorizontalPanel painelBotoes;
	
	public GerenciaFinancasView() {
		
		init();
		deck.showWidget(0);
		initWidget(painelMain);
		
	}

	private void init() {
		painelMain = new VerticalPanel();
		painelMain.setSpacing(25);
		painelMain.setBorderWidth(1);
		
		painelBotoes = new HorizontalPanel();
		deck = new DeckPanel();
		btDespesas = new Button("Despesas");
		btFicancMorador = new Button("Financças Moradores");
		
		FinanceiroView fv = new FinanceiroView();
		new FinanceiroPresenter(fv);
		
		btDespesas.addStyleName("botoesSistema");
		btFicancMorador.addStyleName("botoesSistema");
		
		deck.add(fv);
		
		painelBotoes.add(btDespesas);
		painelBotoes.add(btFicancMorador);
		
		
		painelMain.add(deck);
		painelMain.add(painelBotoes);
	}

	
	
	
}
